package com.ruoyi.problemtag.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.problemtag.mapper.ProblemTagMapper;
import com.ruoyi.problemtag.domain.ProblemTag;
import com.ruoyi.problemtag.service.IProblemTagService;

/**
 * 题目标签Service业务层处理
 * 
 * @author wcc
 * @date 2023-11-15
 */
@Service
public class ProblemTagServiceImpl implements IProblemTagService 
{
    @Autowired
    private ProblemTagMapper problemTagMapper;

    /**
     * 查询题目标签
     * 
     * @param id 题目标签主键
     * @return 题目标签
     */
    @Override
    public ProblemTag selectProblemTagById(Long id)
    {
        return problemTagMapper.selectProblemTagById(id);
    }

    /**
     * 查询题目标签列表
     * 
     * @param problemTag 题目标签
     * @return 题目标签
     */
    @Override
    public List<ProblemTag> selectProblemTagList(ProblemTag problemTag)
    {
        return problemTagMapper.selectProblemTagList(problemTag);
    }

    /**
     * 新增题目标签
     * 
     * @param problemTag 题目标签
     * @return 结果
     */
    @Override
    public int insertProblemTag(ProblemTag problemTag)
    {
        return problemTagMapper.insertProblemTag(problemTag);
    }

    /**
     * 修改题目标签
     * 
     * @param problemTag 题目标签
     * @return 结果
     */
    @Override
    public int updateProblemTag(ProblemTag problemTag)
    {
        return problemTagMapper.updateProblemTag(problemTag);
    }

    /**
     * 批量删除题目标签
     * 
     * @param ids 需要删除的题目标签主键
     * @return 结果
     */
    @Override
    public int deleteProblemTagByIds(Long[] ids)
    {
        return problemTagMapper.deleteProblemTagByIds(ids);
    }

    /**
     * 删除题目标签信息
     * 
     * @param id 题目标签主键
     * @return 结果
     */
    @Override
    public int deleteProblemTagById(Long id)
    {
        return problemTagMapper.deleteProblemTagById(id);
    }
}
